const KEY = 'hzk_token'

const setToken = token => localStorage.setItem(KEY, token)

const getToken = () => localStorage.getItem(KEY)

const delToken = () => localStorage.removeItem(KEY)

const isAuth = () => !!getToken()

export { getToken, isAuth, setToken, delToken }
